package com.sugar.psych.assessment.module.business.controller.admin.psychquestion.vo;

import com.sugar.psych.assessment.module.business.dal.dataobject.psychquestion.PsychQuestionDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.sugar.psych.assessment.framework.excel.core.annotations.DictFormat;
import com.sugar.psych.assessment.framework.excel.core.convert.DictConvert;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 心理测评题目 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PsychQuestionRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16644")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "题库编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelIgnore
    private Long bankId;

    @Schema(description = "题库标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("题库标题")
    private String bankTitle;

    @Schema(description = "题目", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("题目")
    private String title;

    @Schema(description = "选项信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelIgnore
    private List<PsychQuestionDO.Option> optionList;

    @Schema(description = "题型（0单选 1多选）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    //@ExcelProperty("题型（0单选 1多选）")
    @ExcelIgnore
    private Boolean questionType;

    @Schema(description = "排序（从小到大）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序（从小到大）")
    private Integer sort;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}